<?php

        require_once dirname(__FILE__) . '/../../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';
        
		sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
	public function setup()
	{
    	sfYaml::setSpecVersion('1.1');
		// TODO MODIFIE POUR TESTS
		$this->setWebDir($this->getRootDir());
		//$this->enablePlugins(array('sfDoctrinePlugin'));
        //$this->disablePlugins(array('sfPropelPlugin'));

		// for compatibility / remove and enable only the plugins you want
		$this->enableAllPluginsExcept(array('sfPropelPlugin'));
  		sfConfig::set('sf_app_i18n_dir',sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'i18n'); 
		sfConfig::add(array(
	  		'sf_upload_dir_name'  => $sf_upload_dir_name = sfConfig::get('app_fileMng_upload_dir_name', 'uploads'), //$sf_upload_dir_name = 'uploads',
	  		'sf_upload_dir_name'  => $sf_upload_dir_name = sfConfig::get('app_fileMng_upload_dir_name', 'uploads'), //$sf_upload_dir_name = 'uploads',
			'sf_upload_dir'       => sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$sf_upload_dir_name,      
			'sf_download_dir_name'       => $sf_download_dir_name = sfConfig::get('app_fileMng_download_dir_name', 'downloads'), //$sf_upload_dir_name = 'uploads',
			'sf_download_dir'       => sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.sfConfig::get('sf_web_dir_name').$sf_download_dir_name,
			'sf_temp_dir_name'       => $sf_temp_dir_name = sfConfig::get('app_temp_dir_name', 'temp'), //$sf_temp_dir_name = 'temp',
			'sf_temp_dir'       => sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.sfConfig::get('sf_web_dir_name').$sf_temp_dir_name,
	  		'sf_reportdef_dir_name'  => $sf_reportdefs_dir_name = sfConfig::get('app_reportdef_dir_name', 'reportdefs'), //$sf_upload_dir_name = 'uploads',
			'sf_reportdefs_dir'       => sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$sf_reportdefs_dir_name,      
			'sf_icons_dir_name'  => $sf_fotos_dir_name = 'icons',
			'sf_icons_dir'        => sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'web'.DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR.'icons'.DIRECTORY_SEPARATOR.'uploads',
			'sf_NewsLetterTemplates_dir_name'  => $sf_Templatesfotos_dir_name = 'newsTemplates',
			'sf_NewsLetterTemplates_dir'      => sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.$sf_Templatesfotos_dir_name.DIRECTORY_SEPARATOR,  	
		));  	
  		

  }
}
